IdeaBlade DevForce 2010 Help Reference
ConstructGenericInstance(Type,Type[],Object[]) Method
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core Namespace > TypeFns Class > ConstructGenericInstance Method : ConstructGenericInstance(Type,Type[],Object[]) Method



genericType
argTypes
constructorParams
Constructs a generic instance. Can only access public constructors.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function ConstructGenericInstance( _
   ByVal genericType As Type, _
   ByVal argTypes() As Type, _
   ByVal ParamArray constructorParams() As Object _
) As Object
Visual Basic (Usage)Copy Code
Dim genericType As Type
Dim argTypes() As Type
Dim constructorParams() As Object
Dim value As Object
 
value = TypeFns.ConstructGenericInstance(genericType, argTypes, constructorParams)
C# 
public static object ConstructGenericInstance( 
   Type genericType,
   Type[] argTypes,
   params object[] constructorParams
)
C++/CLI 
public:
static Object^ ConstructGenericInstance( 
   Type^ genericType,
   array<Type^>^ argTypes,
   ... array<Object^>^ constructorParams
) 

Parameters

genericType
argTypes
constructorParams

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.